package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class InformationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public InformationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInoIsNull() {
            addCriterion("ino is null");
            return (Criteria) this;
        }

        public Criteria andInoIsNotNull() {
            addCriterion("ino is not null");
            return (Criteria) this;
        }

        public Criteria andInoEqualTo(String value) {
            addCriterion("ino =", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoNotEqualTo(String value) {
            addCriterion("ino <>", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoGreaterThan(String value) {
            addCriterion("ino >", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoGreaterThanOrEqualTo(String value) {
            addCriterion("ino >=", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoLessThan(String value) {
            addCriterion("ino <", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoLessThanOrEqualTo(String value) {
            addCriterion("ino <=", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoLike(String value) {
            addCriterion("ino like", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoNotLike(String value) {
            addCriterion("ino not like", value, "ino");
            return (Criteria) this;
        }

        public Criteria andInoIn(List<String> values) {
            addCriterion("ino in", values, "ino");
            return (Criteria) this;
        }

        public Criteria andInoNotIn(List<String> values) {
            addCriterion("ino not in", values, "ino");
            return (Criteria) this;
        }

        public Criteria andInoBetween(String value1, String value2) {
            addCriterion("ino between", value1, value2, "ino");
            return (Criteria) this;
        }

        public Criteria andInoNotBetween(String value1, String value2) {
            addCriterion("ino not between", value1, value2, "ino");
            return (Criteria) this;
        }

        public Criteria andTnoIsNull() {
            addCriterion("tno is null");
            return (Criteria) this;
        }

        public Criteria andTnoIsNotNull() {
            addCriterion("tno is not null");
            return (Criteria) this;
        }

        public Criteria andTnoEqualTo(String value) {
            addCriterion("tno =", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotEqualTo(String value) {
            addCriterion("tno <>", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoGreaterThan(String value) {
            addCriterion("tno >", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoGreaterThanOrEqualTo(String value) {
            addCriterion("tno >=", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLessThan(String value) {
            addCriterion("tno <", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLessThanOrEqualTo(String value) {
            addCriterion("tno <=", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoLike(String value) {
            addCriterion("tno like", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotLike(String value) {
            addCriterion("tno not like", value, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoIn(List<String> values) {
            addCriterion("tno in", values, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotIn(List<String> values) {
            addCriterion("tno not in", values, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoBetween(String value1, String value2) {
            addCriterion("tno between", value1, value2, "tno");
            return (Criteria) this;
        }

        public Criteria andTnoNotBetween(String value1, String value2) {
            addCriterion("tno not between", value1, value2, "tno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoIsNull() {
            addCriterion("tea_tno is null");
            return (Criteria) this;
        }

        public Criteria andTeaTnoIsNotNull() {
            addCriterion("tea_tno is not null");
            return (Criteria) this;
        }

        public Criteria andTeaTnoEqualTo(String value) {
            addCriterion("tea_tno =", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoNotEqualTo(String value) {
            addCriterion("tea_tno <>", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoGreaterThan(String value) {
            addCriterion("tea_tno >", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoGreaterThanOrEqualTo(String value) {
            addCriterion("tea_tno >=", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoLessThan(String value) {
            addCriterion("tea_tno <", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoLessThanOrEqualTo(String value) {
            addCriterion("tea_tno <=", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoLike(String value) {
            addCriterion("tea_tno like", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoNotLike(String value) {
            addCriterion("tea_tno not like", value, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoIn(List<String> values) {
            addCriterion("tea_tno in", values, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoNotIn(List<String> values) {
            addCriterion("tea_tno not in", values, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoBetween(String value1, String value2) {
            addCriterion("tea_tno between", value1, value2, "teaTno");
            return (Criteria) this;
        }

        public Criteria andTeaTnoNotBetween(String value1, String value2) {
            addCriterion("tea_tno not between", value1, value2, "teaTno");
            return (Criteria) this;
        }

        public Criteria andItitleIsNull() {
            addCriterion("ititle is null");
            return (Criteria) this;
        }

        public Criteria andItitleIsNotNull() {
            addCriterion("ititle is not null");
            return (Criteria) this;
        }

        public Criteria andItitleEqualTo(String value) {
            addCriterion("ititle =", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleNotEqualTo(String value) {
            addCriterion("ititle <>", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleGreaterThan(String value) {
            addCriterion("ititle >", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleGreaterThanOrEqualTo(String value) {
            addCriterion("ititle >=", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleLessThan(String value) {
            addCriterion("ititle <", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleLessThanOrEqualTo(String value) {
            addCriterion("ititle <=", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleLike(String value) {
            addCriterion("ititle like", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleNotLike(String value) {
            addCriterion("ititle not like", value, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleIn(List<String> values) {
            addCriterion("ititle in", values, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleNotIn(List<String> values) {
            addCriterion("ititle not in", values, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleBetween(String value1, String value2) {
            addCriterion("ititle between", value1, value2, "ititle");
            return (Criteria) this;
        }

        public Criteria andItitleNotBetween(String value1, String value2) {
            addCriterion("ititle not between", value1, value2, "ititle");
            return (Criteria) this;
        }

        public Criteria andIcontentIsNull() {
            addCriterion("icontent is null");
            return (Criteria) this;
        }

        public Criteria andIcontentIsNotNull() {
            addCriterion("icontent is not null");
            return (Criteria) this;
        }

        public Criteria andIcontentEqualTo(String value) {
            addCriterion("icontent =", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentNotEqualTo(String value) {
            addCriterion("icontent <>", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentGreaterThan(String value) {
            addCriterion("icontent >", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentGreaterThanOrEqualTo(String value) {
            addCriterion("icontent >=", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentLessThan(String value) {
            addCriterion("icontent <", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentLessThanOrEqualTo(String value) {
            addCriterion("icontent <=", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentLike(String value) {
            addCriterion("icontent like", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentNotLike(String value) {
            addCriterion("icontent not like", value, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentIn(List<String> values) {
            addCriterion("icontent in", values, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentNotIn(List<String> values) {
            addCriterion("icontent not in", values, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentBetween(String value1, String value2) {
            addCriterion("icontent between", value1, value2, "icontent");
            return (Criteria) this;
        }

        public Criteria andIcontentNotBetween(String value1, String value2) {
            addCriterion("icontent not between", value1, value2, "icontent");
            return (Criteria) this;
        }

        public Criteria andIdateIsNull() {
            addCriterion("idate is null");
            return (Criteria) this;
        }

        public Criteria andIdateIsNotNull() {
            addCriterion("idate is not null");
            return (Criteria) this;
        }

        public Criteria andIdateEqualTo(Date value) {
            addCriterion("idate =", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateNotEqualTo(Date value) {
            addCriterion("idate <>", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateGreaterThan(Date value) {
            addCriterion("idate >", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateGreaterThanOrEqualTo(Date value) {
            addCriterion("idate >=", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateLessThan(Date value) {
            addCriterion("idate <", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateLessThanOrEqualTo(Date value) {
            addCriterion("idate <=", value, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateIn(List<Date> values) {
            addCriterion("idate in", values, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateNotIn(List<Date> values) {
            addCriterion("idate not in", values, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateBetween(Date value1, Date value2) {
            addCriterion("idate between", value1, value2, "idate");
            return (Criteria) this;
        }

        public Criteria andIdateNotBetween(Date value1, Date value2) {
            addCriterion("idate not between", value1, value2, "idate");
            return (Criteria) this;
        }

        public Criteria andItypeIsNull() {
            addCriterion("itype is null");
            return (Criteria) this;
        }

        public Criteria andItypeIsNotNull() {
            addCriterion("itype is not null");
            return (Criteria) this;
        }

        public Criteria andItypeEqualTo(String value) {
            addCriterion("itype =", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotEqualTo(String value) {
            addCriterion("itype <>", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeGreaterThan(String value) {
            addCriterion("itype >", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeGreaterThanOrEqualTo(String value) {
            addCriterion("itype >=", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLessThan(String value) {
            addCriterion("itype <", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLessThanOrEqualTo(String value) {
            addCriterion("itype <=", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeLike(String value) {
            addCriterion("itype like", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotLike(String value) {
            addCriterion("itype not like", value, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeIn(List<String> values) {
            addCriterion("itype in", values, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotIn(List<String> values) {
            addCriterion("itype not in", values, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeBetween(String value1, String value2) {
            addCriterion("itype between", value1, value2, "itype");
            return (Criteria) this;
        }

        public Criteria andItypeNotBetween(String value1, String value2) {
            addCriterion("itype not between", value1, value2, "itype");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}